import React from 'react';
import {render} from 'react-dom';
import {browserHistory} from 'react-router'
import {syncHistoryWithStore} from 'react-router-redux'
import Root from './containers/Root'
import configureStore from './store/configureStore'

import 'font-awesome/css/font-awesome.css'
import 'bootstrap/dist/css/bootstrap.css'
import 'jackblog-sass/dist/index.css'
import 'react-s-alert/dist/s-alert-default.css'
import 'react-s-alert/dist/s-alert-css-effects/slide.css'

const initialState = window.__INITIAL_STATE__;
const store = configureStore(initialState,browserHistory);
const history = syncHistoryWithStore(browserHistory, store);


render(
  <Root store={store} history={history}/>,
  document.getElementById('root')
);
